xenstore: setup xenstore stubdom console interface properly
authorJuergen Gross <jgross@suse.com>
Wed, 12 Feb 2020 07:41:52 +0000 (08:41 +0100)
committerWei Liu <wl@xen.org>
Thu, 13 Feb 2020 12:59:22 +0000 (12:59 +0000)
commit5d1f9cd27eae7338bd149cc98edcf2a55468d1d3
treef904cd3263d738df6e3301d86289b901fa950241
parentaf09b7d79cb8ae7498882e61efec75486eb69544
xenstore: setup xenstore stubdom console interface properly

In order to be able to get access to the console of Xenstore stubdom
we need an appropriate granttab entry. So call xc_dom_gnttab_init()
when constructing the domain and preset some information needed
for that function in the dom structure.

We need to create the event channel for the console, too. Do that and
store all necessary data locally.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/helpers/init-xenstore-domain.c